﻿using System;
using Web.Class;


namespace Web.Pages.YongShui._13.LAIHANGL
{
    public partial class FenHuSL : System.Web.UI.Page
    {
        #region 属性
        
        #endregion

        #region 变量
        
        #endregion

        #region 事件
        
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
               
            }
            UCLHFenHuDJXX.SetControlStatus(3, false);
            UCLHFenHuDJXX.SetControlStatus(2, false);
            UCLHFenHuDJXX.SetControlStatus(1, false);
            UCLHShenQingXX.SetEnabledTXT(true);
               
        }
        protected void BtnShuiBiao_Click(object sender, EventArgs e)
        {
            int type = 0;
            string msg = "";
            UCLHFenHuDJXX.CheckYongHuHIsUsed(out type, out msg);
            if (type > 0)
            {
                PageTools.AlertMsg(this, msg);
            }
            else
            {
                string script = "OpenShuiBiaoXX('{0}','{1}','{2}','{3}',{4});";
                script = string.Format(script, UCLHFenHuDJXX.YongHuHY, UCLHFenHuDJXX.YongHuH1, UCLHFenHuDJXX.YongHuH2, UCLHFenHuDJXX.YongHuH3, UCLHFenHuDJXX.YongHu3Checked == true ? "3" : "0");
                PageTools.ResponseScript(this, script);
            }
        }
        /// <summary>
        /// 用于加载控件操作
        /// </summary>
        protected override void OnLoadComplete(EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request["id"]))
            {
                this.UCLHShouLiBTNS.LaiHanID = Request["id"];
            }
            else
            {
                throw new Exception("操作不正确。");
            }
            if (!IsPostBack)
            {
                
            }
        }
        #endregion

        #region 方法
        
        #endregion
    }
}